package FrontOffice;

import javax.swing.JApplet;
import javax.swing.JFrame;

public class Start extends JApplet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static JFrame Start = new JFrame();

	public static void main(String[] args) {
		treiberladen();
		LoginOrRegister L = new LoginOrRegister();
		Start.setSize(800, 600);
		Start.add(L);
		Start.setVisible(true);
	}

	private static void treiberladen() {
		try {
			Class.forName("org.gjt.mm.mysql.Driver").newInstance();
		} catch (Exception e) {
			System.err.println("Unable to load driver.");
			e.printStackTrace();
		}
	}

	public void init() {

		setSize(800, 600);
		add(new LoginOrRegister());
		this.repaint();
	}

	public static JFrame getStart() {
		return Start;
	}
}
